package com.cari.oa.domain;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Length;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
* Title: SoftBugCommentEntity
* Description:bug跟踪
* Company: cari 
* @author  hjx 
* @date    2013-2-16
 */
@Entity
@Table(name = "T_BUG_COMMENT")
public class SoftBugCommentEntity implements Serializable {

    private static final long serialVersionUID = 8775225809962095596L;

    @Id
    @Length(max = 32)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    private String id;

    @Column(name = "AUDITOR")
    private String auditor;
 
    @Length(max = 1000, message = "评论不能超过1000个字符")
    @Column(name = "CONTENT")
    private String content;

    @Column(name = "create_time")
    private Date createTime = new Date();
    
    @Column(name = "BUG_ID")
    private String bugId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAuditor() {
		return auditor;
	}

	public void setAuditor(String auditor) {
		this.auditor = auditor;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getBugId() {
		return bugId;
	}

	public void setBugId(String bugId) {
		this.bugId = bugId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
}
